<div class="framework-box">
    <div class="billing-module">
        <div class="module-title">网络</div>
        <div class="module-content" style="flex-grow:1">
            <div class="module-select" style="margin-top: 20px;">
                <p class="active">网卡</p>
                <div class="question-box" style="height: 35px;">
                    <img src="{{ STATIC_URL }}ratingfunction/img/question.png" alt="">
                    <div class="question">
                        问题介绍
                    </div>
                </div>
            </div>
            <table class="table">
                <thead>
                <tr>
                    <th>名称</th>
                    <th>子网相关联</th>
                    <th>共享</th>
                    <th>对外</th>
                    <th>状态</th>
                    <th>管理员状态</th>
                </tr>
                </thead>
                <tbody>
                {% for network in networks_list %}
                    <tr>
                        <input type="hidden" name="network" value="{{ network}}">
                        <td><input type="radio" name="network_id" required id="item"
                                   value="{{ network.id }}">{{ network.name }}</td>
                        <td>
                            {% for subnet in network.subnets %}
                                {% if forloop.last %}
                                    <p>{{ subnet.name }}</p>
                                {% else %}
                                    <p>{{ subnet.name }}</p>
                                {% endif %}

                            {% endfor %}
                        </td>
                        {% if network.shared == True %}
                            <td>是</td>
                        {% else %}
                            <td>否</td>
                        {% endif %}
                        {% if network.router__external == True %}
                            <td>是</td>
                        {% else %}
                            <td>否</td>
                        {% endif %}
                        {% if network.status == "ACTIVE" %}
                            <td>激活</td>
                        {% else %}
                            <td>未激活</td>
                        {% endif %}
                        <td>{{ network.admin_state_up }}</td>
                    </tr>
                {% endfor %}

                </tbody>
            </table>
        </div>

    </div>
</div>